{php $top_name=$cat.name;}{template "header.html"}

<div class="page-container">
    <div class="page-content-wrapper">
        <div class="page-content bg-b">
            <div class="bg-h">
                <div class="head-title">
                    <div class="news-title">
                        {$title}
                    </div>
                    <div class="news-title-btn">
                        <div class="left"><span class="source">{$author}</span><span class="r_time">{$updatetime}</span></div>
                        <div class="right"><span class="num2">{dr_show_hits($id)}</span>阅读<span class="line"></span><span class="num2">{$comments}</span>评论</div>
                    </div>
                </div>
            </div>
            <div class="container bg-h">
                <div class="list-table margin-top-20">
                    <p><span>行业类型</span> {$cat.name} </p>
                    <p><span>招聘人数</span> {$zprs}人 </p>
                    <p><span>学历要求</span> {php $field = dr_field_options('xueliyaoqiu');}{$field[$xueliyaoqiu]} </p>
                    <p><span>工作年限</span> {$gznx}年</p>
                    <p><span>每月薪资</span> {php $field = dr_field_options('meiyuexinzi');}{$field[$meiyuexinzi]}</p>
                    <p><span>联系人</span> {$lianxiren}</p>
                    <p><span>联系电话</span> {$lxdh}</p>
                    <p><span>工作地区</span> {dr_linkagepos('address', $gongzuodiqu, ' - ')}</p>
                    <p><span>详细街道</span> {$xxjd}</p>
                </div>
            </div>

            <div class="container bg-h">
                <div class="news-keyword-tags margin-top-20">
                    {dr_baidu_map($ditubiaozhu, 17, '100%', '200', '百度地图KEY，自己申请')}
                </div>
            </div>

            <div class="container bg-h">
                <div class="news-table margin-top-10">
                    <div class="title"><span>详细介绍</span></div>
                    <div class="content">
                        <div class="news-content">
                            {$content}
                        </div>
                        <div class="hide-news-content text-center">
                            <a>展开内容</a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="container bg-h">
                <div class="news-keyword-tags margin-top-10">
                    {loop $keyword_list $name $url}
                    <label>
                        <a href="{$url}" target="_blank">{$name}</a>
                    </label>
                    {/loop}
                </div>
            </div>

            <div class="container bg-h">
                <div class="news-table">
                    <div class="title"><span>相关内容</span></div>
                    <ul class="list_normal list_zp">
                        <!--此标签用于调用相关文章，tag=关键词1,关键词2，多个关键词,分隔，num=显示条数，field=显示字段-->
                        {related id=$id catid=$catid tag=$tag num=6}
                        <li>
                            <a href="{$t.url}">
                                <div class="con">
                                    <h3>{$t.title}</h3>
                                    <p>{dr_strcut($t.description, 50)}</p>
                                    <span class="rooms">{$t.updatetime}</span>
                                    <span class="price">{php $field = dr_field_options('meiyuexinzi');}{$field[$t.meiyuexinzi]}</span></div>
                            </a>
                        </li>
                        {/related}
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>

            <div class="container bg-h">
                <div class=" news-table" id="comment-post-div">
                    <div class="title"><span>网友评论</span></div>
                    <div class="nr">
                        {dr_module_comment(MOD_DIR, $id)}
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<div class="footFixed" id="foot_btn_fixed">
    <div class="reply_hd clearfix display1" id="reply_hd">
        <ul>
            <li><a href="{MODULE_URL}" class="share">回首页</a></li>
            <li><span class="num comment-post-div">{$comments}</span></li>
            <li onclick="dr_module_favorite('{MOD_DIR}', '{$id}', 0);"><span class="zan" id="favorite">收藏</span></li>
            <li><a href="javascript:dr_toudi();" id="openReply" class="btn "><i class="fa fa-plus"></i> 投递简历</a></li>
        </ul>
    </div>
</div>
<script language="javascript">
    function dr_toudi() {

        layer.open({
            type: 2,
            title: '投递简历',
            fix:true,
            scrollbar: false,
            shadeClose: true,
            shade: 0,
            area: ['90%', '300px'],
            btn: ['确认'],
            yes: function(index, layero){

                var body = layer.getChildFrame('body', index);
                $.ajax({type: "POST",dataType:"json", url: '/index.php?s={MOD_DIR}&c=api&m=toudi_jianli&id={$id}&is_ajax=1', data: $(body).find('#myform').serialize(),
                    success: function(json) {
                        if (json.code == 1) {
                            dr_tips(json.msg,3,1);
                        } else {
                            dr_tips(json.msg);
                        }
                        return false;
                    },
                    error: function(HttpRequest, ajaxOptions, thrownError) {
                        alert(HttpRequest.responseText);
                    }
                });
                return false;
            },
            content: '/index.php?s={MOD_DIR}&c=api&m=toudi&id={$id}&is_ajax=1'
        });
    }
</script>
{template "footer.html", "/"}